package com.example.crm_system.mapper;

import com.example.crm_system.entity.Params;
import com.example.crm_system.entity.WorkOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WorkOrderMapper {

    void insert(WorkOrder workOrder);

    void complete(Integer ono);

    void cancel(Integer ono);

    List<WorkOrder> searchWorkOrder(@Param("params") Params params);

    List<WorkOrder> findByWorkOrder(@Param("params") Params params);

    void delete(Integer ono);

    void update(WorkOrder workOrder);
}
